import { requestCategoryList } from "@/api"
const state={
    categoryList:[]
}
const mutations ={
    SETCATEGORYLIST_STATE(state,value){
        state.categoryList = value
    }
}
const getters ={

}
const actions={
    async getCategoryList({commit}){
        const re = await  requestCategoryList()
        commit("SETCATEGORYLIST_STATE",re)
    }
}
export default {
    namespaced:true,
    state,
    mutations,
    getters,
    actions
}